package com.example.taximeter.service.impl;

import com.example.taximeter.bean.CarInfo;
import com.example.taximeter.bean.Fact;
import com.example.taximeter.mapper.CarInfoMapper;
import com.example.taximeter.mapper.CompanyMapper;
import com.example.taximeter.service.CarInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 出租车
 */
@Service
public class CarInfoServiceImpl implements CarInfoService {

    private CarInfoMapper carInfoMapper;

    @Autowired
    public CarInfoServiceImpl(CarInfoMapper carInfoMapper){this.carInfoMapper = carInfoMapper;};

    @Override
    public List<CarInfo> findCarInfo(CarInfo carInfo) {

        return carInfoMapper.findCarInfo(carInfo);
    }

    @Override
    public List<CarInfo> findCarList() {

        return carInfoMapper.findCarList();
    }

}
